package com.fire.market.service.impl.impl;


import com.fire.market.manager.PromoManager;
import com.fire.market.service.impl.PromoCmdCoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PromoCmdCoreServiceImpl implements PromoCmdCoreService {
    @Resource
    private PromoManager promoManager;
    @Override
    public void publishPromo(Integer itemId) {
        //依据ItemId获取ItemInfo，此时是无法区分活动商品的数量和普通商品的数量，可采取商品上架下架的方式让商品不被售卖。
        promoManager.queryItemModel(itemId);
    }
}
